﻿using System;
using System.Diagnostics;
using System.Windows.Forms;
using ebcmassendaten.messages;
using ebcmassendaten.specifications;

namespace ebcmassendaten {
    public partial class Portal : Form, IPortal {
        public Portal() {
            InitializeComponent();
        }

        public void In_Progress(double msg) {
            Trace.TraceInformation("Execute In_Progress");
            textBox1.AppendText("In_Progress: " + msg + Environment.NewLine);
        }

        public void In_Header(Record msg) {
            Trace.TraceInformation("Execute In_Header");
            textBox1.AppendText("In_Header: " + msg + Environment.NewLine);
        }

        public void In_Page(Page msg) {
            Trace.TraceInformation("Execute In_Page");
            textBox1.AppendText("In_Page: " + msg + Environment.NewLine);
        }

        public event Action<string> Out_ReadFile;

        private void button1_Click(object sender, EventArgs e) {
            Trace.TraceInformation("Execute Out_ReadFile");
            Out_ReadFile("CSV-Datei.csv");
        }
    }
}
